    <p><a href="<?php bloginfo('url'); ?>"><img class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/img/dicom-cabezal-logo-160.png" /></a></p>
    <ul class="nav nav-list">
      <li class="nav-header">Datos personales</li>
      	<?php //link a los DATOS PERSONALES ?>
		<?php $current_user = wp_get_current_user(); ?>
      <li>
      	
      	<?php
		$pag_datos_personales = get_page_uri(39);
      	$url_datos_personales = site_url( $pag_datos_personales );
		?>
      	<a href="<?php echo $url_datos_personales; ?>"><?php echo $current_user->user_login  ?></a>
      </li>
      
      <?php if (!current_user_can('manage_options')): ?>
      <li class="nav-divider"></li>
	  <li><p><a href="<?php echo wp_logout_url(); ?>" title="Logout" class="btn btn-default btn-xs">Cerrar sesi&oacute;n</a></p></li>
      <?php endif; ?>
	  
	  
	  
<?php get_header(); ?>

<?php
$current_user = wp_get_current_user();
$my_query = new WP_Query(array(
//    'post_type'=> 'post',
//    'post_status' => 'publish',
    'meta_query' => array(
						        array(
						            'key' => 'meta_permisos_usuarios',
						            'value' =>$current_user->user_login,
						            'compare' => '='
						        )
						    ),                             
					));

if($my_query->have_posts()):?>
		<li class="nav-divider"></li>
		<li class="nav-header">Mis horarios</li>


<?php $my_query->the_post();?>

			<li>
				<?php the_content(); ?>
			</li>
		   
		<?php  endif; ?>
	  
	  
		<li class="nav-divider"></li>
		<li class="nav-header">Temas</li>
    
    <?php /* Widgetized sidebar */
			//if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('my_mega_menu') ) : ?><?php //endif; ?>
			<?php //dynamic_sidebar( 'my_mega_menu' ); ?>
			
			<?php
			
				$args = array(
					'show_option_all'    => '',
					'orderby'            => 'name',
					'order'              => 'ASC',
					'style'              => 'list',
					'show_count'         => 0,
					'hide_empty'         => 1,
					'use_desc_for_title' => 1,
					'child_of'           => 0,
					'feed'               => '',
					'feed_type'          => '',
					'feed_image'         => '',
					'exclude'            => '1',
					'exclude_tree'       => '',
					'include'            => '',
					'hierarchical'       => 1,
					'title_li'           => '',
					'show_option_none'   => __('No categories'),
					'number'             => null,
					'echo'               => 1,
					'depth'              => 0,
					'current_category'   => 0,
					'pad_counts'         => 0,
					'taxonomy'           => 'category',
					'walker'             => null
				);				
				
				wp_list_categories( $args ); ?>
				<li class="nav-divider"></li>
				<li><?php get_search_form();?></li>
</ul>

				
